Gets the unique identifier of the current activity. It is unique for all activities in the persisted storage location.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public long CurrentActivityId { get; } |
| Exception type | Condition |
| InvalidOperationException | Thrown if there is no current activity in the session. |
When possible, use this activity identifier (rather than CurrentActivityKey) to access activity information, as it will provide better performance.